/**
 * Copyright (C), 2020, 安徽贝慕信息科技有限公司
 * FileName: AppDetailQuery
 * Author:   Allen
 * Date:     2020/8/21
 * Description: APP信息配置入参类
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.bim.marvel.openapi.client.query;

import io.swagger.annotations.ApiParam;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

/**
 * 〈APP信息配置入参类〉
 *
 * @author Allen
 * @date 2020/8/21
 * @since 1.0.0
 */
@Data
public class AppDetailQuery implements Serializable {

    /**
     * appId，数据来源为oauth服务的clientId
     */
    @ApiParam(value = "appId", name = "appId", example = "test", required = true)
    @NotEmpty
    private String appId;
    /**
     * appSecret,数据来源为oauth服务的clientSecret
     */
    @ApiParam(value = "appSecret", name = "appSecret", example = "1234567890123456")
    private String appSecret;
    /**
     * sessionKey,通过oauth服务获取的token，并使用md5签名得到的key值
     */
    @ApiParam(value = "sessionKey", name = "sessionKey", example = "Esv123464774F532143AB")
    private String sessionKey;

    /**
     * 可访问服务的token，通过oauth服务获取
     */
    @ApiParam(value = "token-前端通过请求oauth服务获得", name = "token",
            example = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9", required = true)
    private String token;
}
